#ifndef _CMAP_H_
#define _CMAP_H_
#include <fstream>
#include <string>
#include <vector>
#include <sstream>
#include "Object.h"
using namespace std;

class CMap
{
private:
	int **mang;
	int width;
	int height;
	std::vector<std::string> &split(const std::string &s, char delim, std::vector<std::string> &elems);
	std::vector<std::string> split(const std::string &s, char delim);
public:
	CMap();
	void LoadMapFromFile(char* fileName);
	int GetWidth() { return width; }
	int GetHeight() { return height; }
	vector<CObject*> GetObjects();
};

#endif 